package com.qifan.energy.global;

import android.graphics.Color;

import androidx.annotation.ColorInt;

import com.blankj.utilcode.util.PathUtils;

import java.io.File;

/**
 * @author xuan
 * @date 2018/3/23.
 * @important 请不要通过实现本类中接口的方式引入常量
 */

public final class Config {

    private Config() {}

    /**
     * 颜色值
     */
    public interface Colors {
        @ColorInt
        int MAIN = Color.parseColor("#26DCBC");
        @ColorInt
        int LINE = Color.parseColor("#EBEEF2");
        @ColorInt
        int TEXT_9B = Color.parseColor("#B6C0CB");
        @ColorInt
        int TEXT_28 = Color.parseColor("#28354C");
        @ColorInt
        int TEXT_7383A2 = Color.parseColor("#7383A2");
        @ColorInt
        int DEVICE_OFFLINE = Color.parseColor("#7383A2");
        @ColorInt
        int DEVICE_K_OFFLINE = Color.parseColor("#313E54");
        @ColorInt
        int COLOR_D8 = Color.parseColor("#D8D8D8");
        @ColorInt
        int COLOR_F7 = Color.parseColor("#F7F7F7");
        @ColorInt
        int COLOR_E7 = Color.parseColor("#E7E7E7");
        @ColorInt
        int COLOR_EF = Color.parseColor("#EFEFEF");
        @ColorInt
        int COLOR_4A5A78 = Color.parseColor("#4A5A78");
        @ColorInt
        int COLOR_C0 = Color.parseColor("#C0C0C0");
        @ColorInt
        int COLOR_80BLACK = Color.parseColor("#ee000000");
    }

    /**
     * 数字常量
     */
    public interface Numbers {
        /**
         * 单页数据量
         */
        int PAGE_SIZE = 10;
        int IMAGE_PAGE_SIZE = 10;
        int IMAGE_BACKUPED_PAGE_SIZE = 100;
        int IMAGE_ALL_PAGE_SIZE = 1000;
        int HOME_NOTICE_PAGE_SIZE = 3;

        int HOME_MOBILE_PAGE_SIZE = 3;
        /**
         * 开屏页保持时间
         */
        int ADVERTISEMENT_TIME = 4;
        /**
         * 验证码长度
         */
        int VERIFY_CODE_LENGTH = 4;
        /**
         * 时间格式化长度
         */
        int TIME_TEXT_LENGTH = 8;
        /**
         * 密码长度下限
         */
        int MIN_PWD_LENGTH = 1;
        /**
         * 电话号码长度
         */
        int PHONE_LENGTH = 11;
        /**
         * 密码长度上限
         */
        int MAX_PWD_LENGTH = 16;
        /**
         * 网页刷新等待时间
         */
        int WEB_WAITING_TIME = 30;
        /**
         * 验证码等待时间
         */
        int VERIFY_CODE_WAIT_TIME = 60;
    }

    /**
     * 界面字符常量
     */
    public interface Text {
        String EMPTY_STR = "";
        String VERIFY_CODE_FORMAT = "%sS后重新获取";
        String TIPS = "提示";
        String APP_NAME_PREFIX = "energy-";
    }

    /**
     * Toast提示语
     */
    public interface Tips {
        String READ_AND_AGREE_PROTOCOL = "请先阅读并同意《用户协议》《隐私协议》";
        String VERIFY_CODE_ERROR = "验证码有误 请重新输入";
        String VERIFY_SMS_SEND = "验证码发送成功";
        String SIGN_IN_SUCCESS = "登陆成功";
        String CONNECT_ERROR = "网络异常，请稍后再试";
    }

    /**
     * 文件目录
     */
    public interface Path {
        String PRIVATE = PathUtils.getExternalStoragePath() + File.separatorChar + "energy" + File.separatorChar;
        String FILE = PRIVATE + "files";
        String CACHE = PRIVATE + "cache";
        String MEDIA = PRIVATE + "media";
    }
}
